import {
	myRequest
} from "./request.js"
export function login(data) {//导出的是一个对象
	return myRequest({
		url: "/user/login",
		method: "POST",
		data: data
	})
}
export function checkToken(data) {
	return myRequest({
		url: "/user/checkToken",
		method: "GET",
		data: data
	})
}
export function getPostWay(option) {
	return myRequest({
		url: "/user/" + option.urlBack,
		method: "GET",
		data: option.data
	})
}
export function getUserAllLikePosts(option) {
	return myRequest({
		url: "/user/getUserAllLikePosts",
		method: "POST",
		data: option
	})
}
export function findPassword(option) {
	return myRequest({
		url: "/user/findPassword",
		method: "PUT",
		data: option.data
	})
}
export function sendMail(option) {
	return myRequest({
		url: "/user/register/sendMailCode",
		method: "GET",
		data: option
	})
}
export function register(option) {
	return myRequest({
		url: "/user/register",
		method: "POST",
		data: option
	})
}
export function getLimitArticle(option) {
	return myRequest({
		url: "/user/getLimitArticle",
		data: option
	})
}
export function getUserInfoNum(option) {
	return myRequest({
		url: "/user/getUserInfoNum",
		data: option
	})
}
export function getAllCommment(option) {
	return myRequest({
		url: "/user/getAllCommment",
		data: option
	})
}
export function getUserComment(option) {
	return myRequest({
		url: "/user/getUserComment",
		method:"POST",
		data: option
	})
}
export function deletePost(option) {
	return myRequest({
		url: "/user/deletePost",
		method:"DELETE",
		data: option
	})
}
